home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000327_arthur.marsh@adelaide.edu.au_Thu Aug 29 12:06:51 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  67 lines

  1. Article: 13657 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!jfk3-feed1.news.algx.net!allegiance!news.maxwell.syr.edu!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail
  3. From: Arthur Marsh <arthur.marsh@adelaide.edu.au>
  4. Organization: The University of Adelaide
  5. User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
  6. X-Accept-Language: en-us, en
  7. MIME-Version: 1.0
  8. Newsgroups: comp.protocols.kermit.misc
  9. Subject: scripting capturing of Cisco ARP tables
  10. Content-Type: text/plain; charset=us-ascii; format=flowed
  11. Content-Transfer-Encoding: 7bit
  12. X-Original-NNTP-Posting-Host: dialup46.staffdialup.services.adelaide.edu.au
  13. Message-ID: <3d6e39ea@yorrell.saard.net>
  14. X-Original-Trace: 30 Aug 2002 00:42:42 +0950, dialup46.staffdialup.services.adelaide.edu.au
  15. Lines: 45
  16. Date: Thu, 29 Aug 2002 15:12:46 GMT
  17. NNTP-Posting-Host: 203.21.37.20
  18. X-Trace: news.optus.net.au 1030633966 203.21.37.20 (Fri, 30 Aug 2002 01:12:46 EST)
  19. NNTP-Posting-Date: Fri, 30 Aug 2002 01:12:46 EST
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13657
  21.  
  22. Hi, I've been out of practice with writing Kermit scripts and want to do 
  23. the following:
  24.  
  25. Given one series of IP addresses:
  26.  
  27. telnet to each IP address in turn,
  28.  
  29. send a:
  30.  
  31. show arp
  32.  
  33. command
  34.  
  35. and send a space character as long as a "More" prompt appears
  36.  
  37. For each line that starts with "Internet", log the 4th and 2nd space 
  38. delimited string to a file.
  39.  
  40. There are a couple of variations.
  41.  
  42. One device needs to be sent the comand
  43.  
  44. session 15 <cr>
  45.  
  46. after the initial log-in and before the "show arp" command.
  47.  
  48. Some devices need
  49.  
  50. session 15 <cr>
  51.  
  52. followed by a second username/password (identical to the first)
  53.  
  54. after the initial log-in and before the "show arp" command.
  55.  
  56. Are there any particular sample scripts to follow, and hints for 
  57. scripting checking for a "More" prompt?
  58.  
  59. Although this seems trivial, it's a bit different from the state table I 
  60. did in 1989 for electronic tax lodgements using MS-Kermit.
  61.  
  62.  
  63. Regards,
  64.  
  65. Arthur.
  66.  
  67.